package com.bingxue.edu.parent.model.resp;

import com.bingxue.edu.management.shop.model.entity.OrderItem;
import com.bingxue.edu.parent.model.entity.ParentOrder;
import com.mybatisflex.annotation.RelationOneToMany;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "购课订单返回信息")
public class ParentOrderResp extends ParentOrder {

    @Schema(description = "课程信息")
    @RelationOneToMany(selfField = "id", targetField = "orderId")
    private List<OrderItem> orderItems;
}
